@echo off
:: %检测环境%
:: %当前绝对的路径%
set _dir=%~dp0

:: %检测php命令%

call %_dir%cmds\which.cmd php

@echo off
IF "%$?%"=="" goto RUN_PHP
IF "%$?%"==0  goto RUN_PHP

:: ------------------------------------
:RUN_PHP
php bin\eii.php  %*
goto EOF
:: --------------------------------------

:ERROR
echo EpgApp built command 需要 php 命令支持

:EOF

set _dir=
set $?=
set CMD_RET=

pause
@echo on